const Movie = require('../models/movie')
  
  // 首页
exports.index = (req, res) => {
  Movie.fetch((err, movies) => {
    if (err) return console.log(err)
    res.render('index', {
      title: 'movie 首页',
      movies: movies
    })
  })
}